package br.inf.solutions.apresentacoes.ssp.view.composer;

import org.springframework.context.annotation.Scope;

import br.com.vexillum.util.ReflectionUtils;
import br.com.vexillum.util.SpringFactory;
import br.inf.solutions.apresentacoes.ssp.control.CountryOfManufactureController;
import br.inf.solutions.apresentacoes.ssp.model.CountryOfManufacture;
import br.inf.solutions.apresentacoes.ssp.view.composer.basicforms.BasicFormsComposer;

@SuppressWarnings("serial")
@org.springframework.stereotype.Component
@Scope("prototype")
public class CountryOfManufactureComposer extends BasicFormsComposer<CountryOfManufacture, CountryOfManufactureController>{

	@Override
	protected String getUpdatePage() {
		return "/paginas/paisfabricacao/modalCadastrar.zul";
	}

	@Override
	public CountryOfManufactureController getControl() {
		return SpringFactory.getController("countryOfManufactureController", CountryOfManufactureController.class, ReflectionUtils.prepareDataForPersistence(this));
	}

	@Override
	public CountryOfManufacture getEntityObject() {
		return new CountryOfManufacture();
	}
}
